<!DOCTYPE html>
<html>
<head>
<title></title> <@h.head />
<style type="text/css">
body {
	padding-bottom: 40px;
}

.sidebar-nav {
	padding: 9px 0;
}

@media ( max-width : 980px) {
	/* Enable use of floated navbar text */
	.navbar-text.pull-right {
		float: none;
		padding-left: 5px;
		padding-right: 5px;
	}
}
</style>
</head>
<body>
	<form action="${path}/foot/save" id="fm" method="post" class="definewidth m20">
		<div style="text-align: center;" id="errorMsg"></div>
		<input type="hidden" id="id" value="${(template.id)!}" name="id">
		<table class="table table-bordered table-hover definewidth m10">
			<tr>
				<td width="10%" class="tableleft">foot模板<span class="required">*</span></td>
				<td>
					<textarea rows="17" style="width: 100%;" name="html" datatype="*" nullmsg="请填写信息！" >${(template.html)!}</textarea>
					<textarea style="display: none" name="lastHtml">${(template.lastHtml)!}</textarea>
				</td>
			</tr>
			<tr>
				<td class="tableleft"></td>
				<td>
					<button type="submit" class="btn btn-primary" type="button">保存</button>
				</td>
			</tr>
		</table>
	</form>
	<@h.foot />
	<script type="text/javascript">
		var callback = function(data) {
			$("#errorMsg").html(data.msg).show();
		}
		$("#fm").validFrom(callback);
	</script>
</body>
</html>